# Created by: Olivier Duchateau
# $FreeBSD$

PORTNAME=	gstreamer1-editing-services
PORTVERSION=	1.4.0
CATEGORIES=	multimedia
MASTER_SITES=	http://gstreamer.freedesktop.org/src/${PORTNAME:S/1//}/
DISTNAME=	${PORTNAME:S/1//}-${PORTVERSION}

MAINTAINER=	multimedia@FreeBSD.org
COMMENT=	GStreamer editing services

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

CFLAGS:=	${CFLAGS} -O2 -Wno-format
GNU_CONFIGURE=	yes
USES=	pkgconfig gmake libtool pathfix python:3,build tar:xz
USE_GNOME=	glib20 introspection:build py3gobject3 libxml2
USE_GSTREAMER1=	yes
USE_LDCONFIG=	yes
INSTALL_TARGET=	install-strip

CONFIGURE_ARGS=	--enable-introspection=yes \
	--disable-examples \
	--disable-gtk-doc-html \
	--without-html-dir

PLIST_SUB=	VERSION="1.0"

# Downgrade PyGObject (4.22 release doesn't exist)
post-patch:
	${REINPLACE_CMD} -e 's|4.22|3.8|' ${WRKSRC}/configure
# Python bindings is incompatible with python3
	${REINPLACE_CMD} -e 's| bindings||' ${WRKSRC}/Makefile.in

.include <bsd.port.mk>
